#!/usr/bin/python
#coding=utf-8
from threading import Thread
from Queue import Queue

que = Queue()


class Custom(Thread):
    def run(self):
        global que
        while True:
            item = que.get()
            #print 'Customed %s' %(item)


class Product(Thread):
    def run(self):
        global que
        while True:
            for i in range(1,100):
                que.put(i)
                #print 'Producted %s' %(i)


if __name__ == '__main__':
    cus = Custom()
    pro = Product()
    pro.start()
    print 'start'
    cus.start()
    print 'end'
